//
//  ScreeningCollectionViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/19.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ScreeningCollectionViewCell.h"

@interface ScreeningCollectionViewCell ()

@end

@implementation ScreeningCollectionViewCell
+ (NSString *)cellIdentifier {
    return @"ScreeningCollectionViewCell";
}

+ (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath {
    ScreeningCollectionViewCell *cell = (ScreeningCollectionViewCell*)[collectionView dequeueReusableCellWithReuseIdentifier:[ScreeningCollectionViewCell cellIdentifier] forIndexPath:indexPath];
    return cell;
}

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor colorWithHexString:@"#EAEAEA"];
        self.layer.cornerRadius = 3.0;
        self.layer.borderWidth = 1.0;
        self.layer.borderColor = kColor_Rule_Yellow.CGColor;
        self.layer.masksToBounds = YES;
        //
        GLGWLabel * titlabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#666666"] inSuperView:self];
        titlabel.text = @"管材";
        [titlabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self);
        }];
    }
    return self;
}
@end
